// 1. 入口函数
// 2. 根组件 materialApp
// 3. 页面架子 Scaffold

import 'package:flutter/material.dart';
import 'package:my_fluter_basic/pages/detail_page.dart';
import 'package:my_fluter_basic/pages/tabbar_page.dart';

void main() {
  runApp(
    MaterialApp(
      routes: {
        '/': (context) => const TabbarPage(),
        '/detail': (context) => const DetailPage(),
      },
    ),
  );
}
